package exp.day01;

import java.util.Random;

public class P01_Random {
    public static void main(String[] args) {
        int num;
        Random ra = new Random();
        while (true) {
            num = ra.nextInt(99) + 1;
            System.out.println(num);
            if (num == 50) {
                System.out.println("已产生" + num + "结束");
                break;
            }
        }
    }
}
